import _ from 'lodash'
import './index.css'
import './style/index.scss'
import svg from './asset/logo.svg'
function printMe(){
  console.log('get called from indexjs!')
}
function component() {
  var element = document.createElement('div')
  element.innerHTML = _.join(['hello','webpack','manager-source'],' ')
  // webpack 加载css
  element.classList.add('hello')
  // webpack 加载图片
  var image = new Image(80,80)
  image.src = svg
  element.appendChild(image)
  // webpack 加载sass
  var button = document.createElement('div')
  button.innerHTML = 'Scss Mixin'
  button.classList.add('button')
  // webpack管理输出多入口
  button.onclick = printMe
  element.appendChild(button)

  return element
}
document.body.appendChild(component())
